package org.jeecg.modules.common.sensitive.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.common.sensitive.entity.SensitiveRule;
import org.jeecg.modules.common.sensitive.vo.response.LevelConfigResponse;
import org.jeecg.modules.common.sensitive.vo.response.SensitiveClassificationResponse;
import org.jeecg.modules.common.sensitive.vo.response.SensitiveStatistics;

import java.util.List;
import java.util.Map;

/**
 * @Description: 脱敏规则
 * @Author: jeecg-boot
 * @Date: 2022-06-14
 * @Version: V1.0
 */
public interface SensitiveRuleMapper extends BaseMapper<SensitiveRule> {

    /**
     * 从数据库查询匹配到的记录条数
     *
     * @param matchSql 查询sql
     * @return 匹配记录数
     */
    @Select("${matchSql}")
    List<String> selectMatchRecord(String matchSql);

}
